import request from '../request';
import { AxiosPromise } from 'axios';
import { RouteRecordExtra } from 'vue-router';

// 获取路由
export function getRouters(): AxiosPromise<RouteRecordExtra[]> {
  return request({
    url: '/system/permission/getRouters',
    method: 'get'
  });
}
